<?php
// Validation rule
$config = array(
            'register/index' => 
			   array(
			      array('field'=>'username', 'label'=>'User Name', 'rules'=>'required|min_length[4]|max_length[50]|xss_clean|trim|is_unique[oregano_user.username]' ),
				  array('field'=>'email', 'label'=>'Email', 'rules'=>'required|max_length[100]|valid_email|xss_clean|trim|is_unique[oregano_user.email]'),
			      array('field'=>'password', 'label'=>'Password', 'rules'=>'trim|required|callback_strong_password|matches[password2]'),
			      array('field'=>'password2', 'label'=>'Reinput Password', 'rules'=>'trim|required'),
			      array('field'=>'first_name', 'label'=>'First Name', 'rules'=>'trim|xss_clean'),
			      array('field'=>'last_name', 'label'=>'Last Name', 'rules'=>'trim|xss_clean'),
				  array('field'=>'gender', 'label'=>'Gender', 'rules'=>'trim|xss_clean'),
				  array('field'=>'phone', 'label'=>'Phone', 'rules'=>'trim|xss_clean'),
				  array('field'=>'address1', 'label'=>'Address Line 1', 'rules'=>'trim|xss_clean'),
				  array('field'=>'address2', 'label'=>'Address Line 2', 'rules'=>'trim|xss_clean'),
				  array('field'=>'city', 'label'=>'City', 'rules'=>'trim|xss_clean'),
				  array('field'=>'province_state', 'label'=>'Province/State', 'rules'=>'trim|xss_clean'),
				  array('field'=>'country', 'label'=>'Country', 'rules'=>'trim|callback_choose_select|xss_clean'),
				  array('field'=>'postal_code', 'label'=>'Postal Code', 'rules'=>'trim|xss_clean'),
				  array('field'=>'facebook', 'label'=>'Facebook', 'rules'=>'trim|xss_clean'),
				  array('field'=>'twitter', 'label'=>'Twitter', 'rules'=>'trim|xss_clean'),
				  array('field'=>'website', 'label'=>'Web Site', 'rules'=>'trim|xss_clean')
			   ),
			'activation/resend' => 
			   array(
			      array('field'=>'username','label'=>'User Name','rules'=>'required|xss_clean|trim'),
				  array('field'=>'email','label'=>'Email','rules'=>'required|valid_email|xss_clean|trim')
			   )   
          );

?>